function two(num){
    return num<10?'0'+num:num;
}
export const toDate=(date)=>(d=>[d.getFullYear(),two(d.getMonth()+1),two(d.getDate())].join('-'))(new Date(date));
export const today=()=>(d=>new Date(d.getFullYear(),d.getMonth(),d.getDate()))(new Date());